<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:65:"D:\phpStudy\PHPTutorial\WWW\redbean/app/home\view\users\cashlist.php";i:1545728167;s:60:"D:\phpStudy\PHPTutorial\WWW\redbean\app\home\view\layout.php";i:1545644826;s:67:"D:\phpStudy\PHPTutorial\WWW\redbean\app\admin\view\block\header.php";i:1533343701;s:65:"D:\phpStudy\PHPTutorial\WWW\redbean\app\admin\view\block\menu.php";i:1533343701;s:66:"D:\phpStudy\PHPTutorial\WWW\redbean\app\admin\view\block\layui.php";i:1533343701;s:67:"D:\phpStudy\PHPTutorial\WWW\redbean\app\admin\view\block\footer.php";i:1533343701;}*/ ?>
<?php if(input('param.hisi_iframe') || cookie('hisi_iframe')): ?>
<!DOCTYPE html>
<html>
<head>
    <title><?php echo $_admin_menu_current['title']; ?> -  Powered by <?php echo config('hisiphp.name'); ?></title>
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <link rel="stylesheet" href="/static/admin/js/layui/css/layui.css?v=<?php echo config('hisiphp.version'); ?>">
    <link rel="stylesheet" href="/static/admin/css/theme.css?v=<?php echo config('hisiphp.version'); ?>">
    <link rel="stylesheet" href="/static/admin/css/style.css?v=<?php echo config('hisiphp.version'); ?>">
    <link rel="stylesheet" href="/static/fonts/typicons/min.css?v=<?php echo config('hisiphp.version'); ?>">
    <link rel="stylesheet" href="/static/fonts/font-awesome/min.css?v=<?php echo config('hisiphp.version'); ?>">
</head>
<body class="hisi-theme-<?php echo cookie('hisi_admin_theme'); ?>">
<div style="padding:0 10px;" class="mcolor"><?php echo runhook('system_admin_tips'); ?></div>
<?php else: ?>
<!DOCTYPE html>
<html>
<head>
    <title><?php if($_admin_menu_current['url'] == 'admin/index/index'): ?>管理控制台<?php else: ?><?php echo $_admin_menu_current['title']; endif; ?> -  Powered by <?php echo config('hisiphp.name'); ?></title>
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <link rel="stylesheet" href="/static/admin/js/layui/css/layui.css?v=<?php echo config('hisiphp.version'); ?>">
    <link rel="stylesheet" href="/static/admin/css/theme.css?v=<?php echo config('hisiphp.version'); ?>">
    <link rel="stylesheet" href="/static/admin/css/style.css?v=<?php echo config('hisiphp.version'); ?>">
    <link rel="stylesheet" href="/static/fonts/typicons/min.css?v=<?php echo config('hisiphp.version'); ?>">
    <link rel="stylesheet" href="/static/fonts/font-awesome/min.css?v=<?php echo config('hisiphp.version'); ?>">
</head>
<body class="hisi-theme-<?php echo cookie('hisi_admin_theme'); ?>">
<?php 
$ca = strtolower(request()->controller().'/'.request()->action());
 ?>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header" style="z-index:999!important;">
    <div class="fl header-logo">管理控制台</div>
    <div class="fl header-fold"><a href="javascript:;" title="打开/关闭左侧导航" class="aicon ai-caidan" id="foldSwitch"></a></div>
    <ul class="layui-nav fl nobg main-nav">
        <?php if(is_array($_admin_menu) || $_admin_menu instanceof \think\Collection || $_admin_menu instanceof \think\Paginator): $i = 0; $__LIST__ = $_admin_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if(($_admin_menu_parents['pid'] == $vo['id'] and $ca != 'plugins/run') or ($ca == 'plugins/run' and $vo['id'] == 3)): ?>
           <li class="layui-nav-item layui-this">
            <?php else: ?>
            <li class="layui-nav-item">
            <?php endif; ?> 
            <a href="javascript:;"><?php echo $vo['title']; ?></a></li>
        <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
    <ul class="layui-nav fr nobg head-info">
        <li class="layui-nav-item"><a href="/" target="_blank" class="aicon ai-ai-home" title="前台"></a></li>
        <li class="layui-nav-item"><a href="<?php echo url('admin/index/clear'); ?>" class="j-ajax aicon ai-qingchu" refresh="yes" title="清缓存"></a></li>
        <li class="layui-nav-item"><a href="javascript:void(0);" class="aicon ai-suo" id="lockScreen" title="锁屏"></a></li>
        <li class="layui-nav-item">
            <a href="<?php echo url('admin/user/setTheme'); ?>" id="admin-theme-setting" class="aicon ai-theme"></a>
        </li>
        <li class="layui-nav-item">
            <a href="javascript:void(0);"><?php echo $admin_user['nick']; ?>&nbsp;&nbsp;</a>
            <dl class="layui-nav-child">
                <dd><a data-id="00" class="admin-nav-item top-nav-item" href="<?php echo url('admin/user/info'); ?>">个人设置</a></dd>
                <dd><a href="<?php echo url('admin/user/iframe'); ?>" class="j-ajax" refresh="yes"><?php echo input('cookie.hisi_iframe') ? '单页布局' : '框架布局'; ?></a></dd>
                <?php if(is_array($languages) || $languages instanceof \think\Collection || $languages instanceof \think\Paginator): $i = 0; $__LIST__ = $languages;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['pack']): ?>
                    <dd><a href="<?php echo url('admin/index/index'); ?>?lang=<?php echo $vo['code']; ?>"><?php echo $vo['name']; ?></a></dd>
                    <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                <dd><a data-id="000" class="admin-nav-item top-nav-item" href="<?php echo url('admin/language/index'); ?>">语言包管理</a></dd>
                <dd><a href="<?php echo url('admin/publics/logout'); ?>">退出登陆</a></dd>
            </dl>
        </li>
    </ul>
</div>
<div class="layui-side layui-bg-black" id="switchNav">
    <div class="layui-side-scroll">
        <?php if(is_array($_admin_menu) || $_admin_menu instanceof \think\Collection || $_admin_menu instanceof \think\Paginator): $i = 0; $__LIST__ = $_admin_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;if(($_admin_menu_parents['pid'] == $v['id'] and $ca != 'plugins/run') or ($ca == 'plugins/run' and $v['id'] == 3)): ?>
        <ul class="layui-nav layui-nav-tree">
        <?php else: ?>
        <ul class="layui-nav layui-nav-tree" style="display:none;">
        <?php endif; if(is_array($v['childs']) || $v['childs'] instanceof \think\Collection || $v['childs'] instanceof \think\Paginator): $kk = 0; $__LIST__ = $v['childs'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vv): $mod = ($kk % 2 );++$kk;?>
            <li class="layui-nav-item <?php if($kk == 1): ?>layui-nav-itemed<?php endif; ?>">
                <a href="javascript:;"><i class="<?php echo $vv['icon']; ?>"></i><?php echo $vv['title']; ?><span class="layui-nav-more"></span></a>
                <dl class="layui-nav-child">
                    <?php if($vv['title'] == '快捷菜单'): ?>
                        <dd><a class="admin-nav-item" href="<?php echo url('admin/index/index'); ?>"><i class="aicon ai-shouye"></i> 后台首页</a></dd>
                        <?php if(is_array($vv['childs']) || $vv['childs'] instanceof \think\Collection || $vv['childs'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vv['childs'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vvv): $mod = ($i % 2 );++$i;?>
                        <dd><a class="admin-nav-item" data-id="<?php echo $vvv['id']; ?>" href="<?php if(strpos('http', $vvv['url']) === false): ?>/<?php echo config('sys.admin_path').'/'.$vvv['url']; if($vvv['param']): ?>?<?php echo $vvv['param']; endif; else: ?><?php echo $vvv['url']; endif; ?>"><?php if(file_exists('.'.$vvv['icon'])): ?><img src="<?php echo $vvv['icon']; ?>" width="16" height="16" /><?php else: ?><i class="<?php echo $vvv['icon']; ?>"></i><?php endif; ?> <?php echo $vvv['title']; ?></a><i data-href="<?php echo url('menu/del?ids='.$vvv['id']); ?>" class="layui-icon j-del-menu">&#xe640;</i></dd>
                        <?php endforeach; endif; else: echo "" ;endif; else: if(is_array($vv['childs']) || $vv['childs'] instanceof \think\Collection || $vv['childs'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vv['childs'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vvv): $mod = ($i % 2 );++$i;?>
                        <dd><a class="admin-nav-item" data-id="<?php echo $vvv['id']; ?>" href="<?php if(strpos('http', $vvv['url']) === false): ?>/<?php echo config('sys.admin_path').'/'.$vvv['url']; if($vvv['param']): ?>?<?php echo $vvv['param']; endif; else: ?><?php echo $vvv['url']; endif; ?>"><?php if(file_exists('.'.$vvv['icon'])): ?><img src="<?php echo $vvv['icon']; ?>" width="16" height="16" /><?php else: ?><i class="<?php echo $vvv['icon']; ?>"></i><?php endif; ?> <?php echo $vvv['title']; ?></a></dd>
                        <?php endforeach; endif; else: echo "" ;endif; endif; ?>
                </dl>
            </li>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
        <?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
</div>
<script type="text/html" id="hisi-theme-tpl">
    <ul class="hisi-themes">
        <?php $_result=session('hisi_admin_themes');if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
        <li data-theme="<?php echo $vo; ?>" class="hisi-theme-item-<?php echo $vo; ?>"></li>
        <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
</script>
    <div class="layui-body" id="switchBody">
        <ul class="bread-crumbs">
            <?php if(is_array($_bread_crumbs) || $_bread_crumbs instanceof \think\Collection || $_bread_crumbs instanceof \think\Paginator): $i = 0; $__LIST__ = $_bread_crumbs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;if($key > 0 && $i != count($_bread_crumbs)): ?>
                    <li>></li>
                    <li><a href="<?php echo url($v['url'].'?'.$v['param']); ?>"><?php echo $v['title']; ?></a></li>
                <?php elseif($i == count($_bread_crumbs)): ?>
                    <li>></li>
                    <li><a href="javascript:void(0);"><?php echo $v['title']; ?></a></li>
                <?php else: ?>
                    <li><a href="javascript:void(0);"><?php echo $v['title']; ?></a></li>
                <?php endif; endforeach; endif; else: echo "" ;endif; ?>
            <li><a href="<?php echo url('admin/menu/quick?id='.$_admin_menu_current['id']); ?>" title="添加到首页快捷菜单" class="j-ajax">[+]</a></li>
        </ul>
        <div style="padding:0 10px;" class="mcolor"><?php echo runhook('system_admin_tips'); ?></div>
        <div class="page-body">
<?php endif; switch($tab_type): case "1": ?>
    
        <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title">
                <?php if(is_array($tab_data['menu']) || $tab_data['menu'] instanceof \think\Collection || $tab_data['menu'] instanceof \think\Paginator): $i = 0; $__LIST__ = $tab_data['menu'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['url'] == $_admin_menu_current['url'] or (url($vo['url']) == $tab_data['current'])): ?>
                    <li class="layui-this">
                    <?php else: ?>
                    <li>
                    <?php endif; if(substr($vo['url'], 0, 4) == 'http'): ?>
                        <a href="<?php echo $vo['url']; ?>" target="_blank"><?php echo $vo['title']; ?></a>
                    <?php else: ?>
                        <a href="<?php echo url($vo['url']); ?>"><?php echo $vo['title']; ?></a>
                    <?php endif; ?>
                    </li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
                <div class="tool-btns">
                    <a href="javascript:location.reload();" title="刷新当前页面" class="aicon ai-shuaxin2 font18"></a>
                    <a href="javascript:;" class="aicon ai-quanping1 font18" id="fullscreen-btn" title="打开/关闭全屏"></a>
                </div>
            </ul>
            <div class="layui-tab-content page-tab-content">
                <div class="layui-tab-item layui-show">
                    <link type="text/css" rel="stylesheet" href="/static/home/datatime/test/jeDate-test.css">
<link type="text/css" rel="stylesheet" href="/static/home/datatime/skin/jedate.css">
<script type="text/javascript" src="/static/home/datatime/src/jedate.js"></script>
<style type="text/css">
    .layui-form-item{
        display: inline-block;
    }
    .submitjiao{
        cursor: pointer;
        background-color: #0C0C0C;
    }
</style>
<div class="page-toolbar">
    <div class="page-filter fr">
        <form class="layui-form layui-form-pane" action="<?php echo url(); ?>" method="get">
            <div class="layui-form-item">
                <label class="layui-form-label">注册时间</label>
                <div class="layui-input-inline" style="min-width:230px;">
                    <div class="jeinpbox"><input type="text" name="createtime" value="<?php echo input('get.createtime'); ?>" readonly placeholder="年月日~年月日"  id="test11A" lay-verify="required" autocomplete="off" class="layui-input"></div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">审核</label>
                <div class="layui-input-inline">
                    <select name="isverify" class="field-bank_id" type="select">
                        <option value="3" selected <?php if(input('get.status') == 3): ?>selected<?php endif; ?>>全部</option>
                        <option value="1" <?php if(input('get.isverify') == 1): ?>selected<?php endif; ?>>未审核</option>
                        <option value="2" <?php if(input('get.isverify') == 2): ?>selected<?php endif; ?>>已审核</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">

                <label class="layui-form-label">状态</label>
                <div class="layui-input-inline">
                    <select name="status" class="field-bank_id" type="select">
                        <option value="3" <?php if(input('get.status') == 3): ?>selected<?php endif; ?>>全部</option>

                        <option value="1" <?php if(input('get.status') == 1): ?>selected<?php endif; ?>>正常</option>
                        <option value="2" <?php if(input('get.status') == 2): ?>selected<?php endif; ?>>禁用</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">关键字</label>
                <div class="layui-input-inline">
                    <input type="text" name="keyword" value="<?php echo input('get.keyword'); ?>" lay-verify="required" placeholder="老师姓名或手机号" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <input type="hidden" value="2" name="character">
                    <input type="submit" value="搜索" class="layui-form-label submitjiao">
                </div>
            </div>

        </form>
    </div>
    <div class="layui-btn-group fl">
        <a href="javascript(0);" data-url="<?php echo url('exportdata'); ?>" class="layui-btn layui-btn-primary layui-icon layui-icon-add-circle-fine exportdata">&nbsp;导出数据</a>
    </div>
</div>
<form id="pageListForm">
    <div class="layui-form">
        <table class="layui-table mt10" lay-even="" lay-skin="row">
            <colgroup>
                <col width="50">
            </colgroup>
            <thead>
            <tr>
                <th><input type="checkbox" lay-skin="primary" lay-filter="allChoose"></th>
                <th>id</th>
                <th>昵称</th>
                <th>头像</th>
                <th>手机号</th>
                <th>地址</th>
                <th>学历</th>
                <th>性别</th>
                <th>年龄</th>
                <th>身份</th>
                <th>注册时间</th>
                <th>上次登录时间</th>
                <th>用户状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <?php 
            $level = config('hs_system.member_level');
             if(is_array($userlist) || $userlist instanceof \think\Collection || $userlist instanceof \think\Paginator): $i = 0; $__LIST__ = $userlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
            <tr>
                <td><input type="checkbox" name="ids[]" class="layui-checkbox checkbox-ids" value="<?php echo $vo['id']; ?>" lay-skin="primary"></td>
                <td class="font12"><?php echo $vo['nickname']; ?></td>
                <td class="font12"><img src="<?php if($vo['headicon']): ?><?php echo $vo['headicon']; else: ?>/static/admin/image/avatar.png<?php endif; ?>" width="60" height="60" class="fl"></td>
                <td class="font12"><?php echo $vo['phonenum']; ?></td>
                <td class="font12"><?php echo $vo['address']; ?></td>
                <td class="font12"><?php echo $vo['gender']; ?></td>
                <td class="font12"><?php echo $vo['age']; ?></td>
                <td class="font12"><?php if($vo['role'] == 1): ?>婚恋<?php else: ?>周易<?php endif; ?></td>
                <td class="font12"><?php echo date("Y-m-d H:i:s",$vo['create_time']); ?></td>
                <td class="font12"><?php echo date("Y-m-d H:i:s",$vo['opration_time']); ?></td>
                <td class="font12"><input type="checkbox"  name="status" value="<?php echo $vo['status']; ?>" lay-skin="switch" lay-filter="switchStatus" lay-text="否|是" <?php if($vo['status'] == 1): ?>checked<?php endif; ?> data-href="<?php echo url('changestatus',array('id'=>$vo['id'])); ?>"></td>

                <td style="width: 150px;">
                    <div class="layui-btn-group">
                        <div class="layui-btn-group">
                            <a href="<?php echo url('userverify?id='.$vo['id']); ?>" class="layui-btn layui-btn-primary layui-btn-sm" title="审核"><i class="layui-icon">&#xe642;</i></a>
                            <!--                            <a data-href="<?php echo url('delete?table=home_bank&ids='.$vo['id']); ?>" class="layui-btn layui-btn-primary layui-btn-sm j-tr-del"><i class="layui-icon">&#xe640;</i></a>-->
                        </div>
                    </div>
                </td>
            </tr>
            <?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
        </table>
        <?php echo $userlist->render(); ?>
    </div>
</form>
<script src="/static/admin/js/layui/layui.js?v=<?php echo config('hisiphp.version'); ?>"></script>
<script>
    var ADMIN_PATH = "<?php echo $_SERVER['SCRIPT_NAME']; ?>";
    layui.config({
        base: '/static/admin/js/',
        version: '<?php echo config("hisiphp.version"); ?>'
    }).use('global');
</script>
<script src="/static/js/jquery.2.1.4.min.js"></script>
<script type="text/javascript">
    jeDate("#test11A",{
        format: "YYYY-MM-DD hh:mm:ss",
        multiPane:false,
        range:"~"
    });

    $(".pagination a").on("click",function (e) {
        var url = $(this).attr("href");
        var formdata = $(".layui-form").serialize();
        if(url.indexOf('?')<=-1){
            url = url+"?"+formdata;
        }else{
            url = url+"&"+formdata;
        }
        e.preventDefault();
        $(location).attr('href', url);
    });
    $(".exportdata").on("click",function (e) {
        var url = $(this).attr("data-url");
        var formdata = $(".layui-form").serialize();
        if(url.indexOf('?')<=-1){
            url = url+"?"+formdata;
        }else{
            url = url+"&"+formdata;
        }
        e.preventDefault();
        location.href=url;
    });
</script>
                </div>
            </div>
        </div>
    <?php break; case "2": ?>
    
        <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title">
                <?php if(is_array($tab_data['menu']) || $tab_data['menu'] instanceof \think\Collection || $tab_data['menu'] instanceof \think\Paginator): $k = 0; $__LIST__ = $tab_data['menu'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;if($k == 1): ?>
                    <li class="layui-this">
                    <?php else: ?>
                    <li>
                    <?php endif; ?>
                    <a href="javascript:;"><?php echo $vo['title']; ?></a>
                    </li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
                <div class="tool-btns">
                    <a href="javascript:location.reload();" title="刷新当前页面" class="aicon ai-shuaxin2 font18"></a>
                    <a href="javascript:;" class="aicon ai-quanping1 font18" id="fullscreen-btn" title="打开/关闭全屏"></a>
                </div>
            </ul>
            <div class="layui-tab-content page-tab-content">
                <link type="text/css" rel="stylesheet" href="/static/home/datatime/test/jeDate-test.css">
<link type="text/css" rel="stylesheet" href="/static/home/datatime/skin/jedate.css">
<script type="text/javascript" src="/static/home/datatime/src/jedate.js"></script>
<style type="text/css">
    .layui-form-item{
        display: inline-block;
    }
    .submitjiao{
        cursor: pointer;
        background-color: #0C0C0C;
    }
</style>
<div class="page-toolbar">
    <div class="page-filter fr">
        <form class="layui-form layui-form-pane" action="<?php echo url(); ?>" method="get">
            <div class="layui-form-item">
                <label class="layui-form-label">注册时间</label>
                <div class="layui-input-inline" style="min-width:230px;">
                    <div class="jeinpbox"><input type="text" name="createtime" value="<?php echo input('get.createtime'); ?>" readonly placeholder="年月日~年月日"  id="test11A" lay-verify="required" autocomplete="off" class="layui-input"></div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">审核</label>
                <div class="layui-input-inline">
                    <select name="isverify" class="field-bank_id" type="select">
                        <option value="3" selected <?php if(input('get.status') == 3): ?>selected<?php endif; ?>>全部</option>
                        <option value="1" <?php if(input('get.isverify') == 1): ?>selected<?php endif; ?>>未审核</option>
                        <option value="2" <?php if(input('get.isverify') == 2): ?>selected<?php endif; ?>>已审核</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">

                <label class="layui-form-label">状态</label>
                <div class="layui-input-inline">
                    <select name="status" class="field-bank_id" type="select">
                        <option value="3" <?php if(input('get.status') == 3): ?>selected<?php endif; ?>>全部</option>

                        <option value="1" <?php if(input('get.status') == 1): ?>selected<?php endif; ?>>正常</option>
                        <option value="2" <?php if(input('get.status') == 2): ?>selected<?php endif; ?>>禁用</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">关键字</label>
                <div class="layui-input-inline">
                    <input type="text" name="keyword" value="<?php echo input('get.keyword'); ?>" lay-verify="required" placeholder="老师姓名或手机号" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <input type="hidden" value="2" name="character">
                    <input type="submit" value="搜索" class="layui-form-label submitjiao">
                </div>
            </div>

        </form>
    </div>
    <div class="layui-btn-group fl">
        <a href="javascript(0);" data-url="<?php echo url('exportdata'); ?>" class="layui-btn layui-btn-primary layui-icon layui-icon-add-circle-fine exportdata">&nbsp;导出数据</a>
    </div>
</div>
<form id="pageListForm">
    <div class="layui-form">
        <table class="layui-table mt10" lay-even="" lay-skin="row">
            <colgroup>
                <col width="50">
            </colgroup>
            <thead>
            <tr>
                <th><input type="checkbox" lay-skin="primary" lay-filter="allChoose"></th>
                <th>id</th>
                <th>昵称</th>
                <th>头像</th>
                <th>手机号</th>
                <th>地址</th>
                <th>学历</th>
                <th>性别</th>
                <th>年龄</th>
                <th>身份</th>
                <th>注册时间</th>
                <th>上次登录时间</th>
                <th>用户状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <?php 
            $level = config('hs_system.member_level');
             if(is_array($userlist) || $userlist instanceof \think\Collection || $userlist instanceof \think\Paginator): $i = 0; $__LIST__ = $userlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
            <tr>
                <td><input type="checkbox" name="ids[]" class="layui-checkbox checkbox-ids" value="<?php echo $vo['id']; ?>" lay-skin="primary"></td>
                <td class="font12"><?php echo $vo['nickname']; ?></td>
                <td class="font12"><img src="<?php if($vo['headicon']): ?><?php echo $vo['headicon']; else: ?>/static/admin/image/avatar.png<?php endif; ?>" width="60" height="60" class="fl"></td>
                <td class="font12"><?php echo $vo['phonenum']; ?></td>
                <td class="font12"><?php echo $vo['address']; ?></td>
                <td class="font12"><?php echo $vo['gender']; ?></td>
                <td class="font12"><?php echo $vo['age']; ?></td>
                <td class="font12"><?php if($vo['role'] == 1): ?>婚恋<?php else: ?>周易<?php endif; ?></td>
                <td class="font12"><?php echo date("Y-m-d H:i:s",$vo['create_time']); ?></td>
                <td class="font12"><?php echo date("Y-m-d H:i:s",$vo['opration_time']); ?></td>
                <td class="font12"><input type="checkbox"  name="status" value="<?php echo $vo['status']; ?>" lay-skin="switch" lay-filter="switchStatus" lay-text="否|是" <?php if($vo['status'] == 1): ?>checked<?php endif; ?> data-href="<?php echo url('changestatus',array('id'=>$vo['id'])); ?>"></td>

                <td style="width: 150px;">
                    <div class="layui-btn-group">
                        <div class="layui-btn-group">
                            <a href="<?php echo url('userverify?id='.$vo['id']); ?>" class="layui-btn layui-btn-primary layui-btn-sm" title="审核"><i class="layui-icon">&#xe642;</i></a>
                            <!--                            <a data-href="<?php echo url('delete?table=home_bank&ids='.$vo['id']); ?>" class="layui-btn layui-btn-primary layui-btn-sm j-tr-del"><i class="layui-icon">&#xe640;</i></a>-->
                        </div>
                    </div>
                </td>
            </tr>
            <?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
        </table>
        <?php echo $userlist->render(); ?>
    </div>
</form>
<script src="/static/admin/js/layui/layui.js?v=<?php echo config('hisiphp.version'); ?>"></script>
<script>
    var ADMIN_PATH = "<?php echo $_SERVER['SCRIPT_NAME']; ?>";
    layui.config({
        base: '/static/admin/js/',
        version: '<?php echo config("hisiphp.version"); ?>'
    }).use('global');
</script>
<script src="/static/js/jquery.2.1.4.min.js"></script>
<script type="text/javascript">
    jeDate("#test11A",{
        format: "YYYY-MM-DD hh:mm:ss",
        multiPane:false,
        range:"~"
    });

    $(".pagination a").on("click",function (e) {
        var url = $(this).attr("href");
        var formdata = $(".layui-form").serialize();
        if(url.indexOf('?')<=-1){
            url = url+"?"+formdata;
        }else{
            url = url+"&"+formdata;
        }
        e.preventDefault();
        $(location).attr('href', url);
    });
    $(".exportdata").on("click",function (e) {
        var url = $(this).attr("data-url");
        var formdata = $(".layui-form").serialize();
        if(url.indexOf('?')<=-1){
            url = url+"?"+formdata;
        }else{
            url = url+"&"+formdata;
        }
        e.preventDefault();
        location.href=url;
    });
</script>
            </div>
        </div>
    <?php break; case "3": ?>
    
        <link type="text/css" rel="stylesheet" href="/static/home/datatime/test/jeDate-test.css">
<link type="text/css" rel="stylesheet" href="/static/home/datatime/skin/jedate.css">
<script type="text/javascript" src="/static/home/datatime/src/jedate.js"></script>
<style type="text/css">
    .layui-form-item{
        display: inline-block;
    }
    .submitjiao{
        cursor: pointer;
        background-color: #0C0C0C;
    }
</style>
<div class="page-toolbar">
    <div class="page-filter fr">
        <form class="layui-form layui-form-pane" action="<?php echo url(); ?>" method="get">
            <div class="layui-form-item">
                <label class="layui-form-label">注册时间</label>
                <div class="layui-input-inline" style="min-width:230px;">
                    <div class="jeinpbox"><input type="text" name="createtime" value="<?php echo input('get.createtime'); ?>" readonly placeholder="年月日~年月日"  id="test11A" lay-verify="required" autocomplete="off" class="layui-input"></div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">审核</label>
                <div class="layui-input-inline">
                    <select name="isverify" class="field-bank_id" type="select">
                        <option value="3" selected <?php if(input('get.status') == 3): ?>selected<?php endif; ?>>全部</option>
                        <option value="1" <?php if(input('get.isverify') == 1): ?>selected<?php endif; ?>>未审核</option>
                        <option value="2" <?php if(input('get.isverify') == 2): ?>selected<?php endif; ?>>已审核</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">

                <label class="layui-form-label">状态</label>
                <div class="layui-input-inline">
                    <select name="status" class="field-bank_id" type="select">
                        <option value="3" <?php if(input('get.status') == 3): ?>selected<?php endif; ?>>全部</option>

                        <option value="1" <?php if(input('get.status') == 1): ?>selected<?php endif; ?>>正常</option>
                        <option value="2" <?php if(input('get.status') == 2): ?>selected<?php endif; ?>>禁用</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">关键字</label>
                <div class="layui-input-inline">
                    <input type="text" name="keyword" value="<?php echo input('get.keyword'); ?>" lay-verify="required" placeholder="老师姓名或手机号" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <input type="hidden" value="2" name="character">
                    <input type="submit" value="搜索" class="layui-form-label submitjiao">
                </div>
            </div>

        </form>
    </div>
    <div class="layui-btn-group fl">
        <a href="javascript(0);" data-url="<?php echo url('exportdata'); ?>" class="layui-btn layui-btn-primary layui-icon layui-icon-add-circle-fine exportdata">&nbsp;导出数据</a>
    </div>
</div>
<form id="pageListForm">
    <div class="layui-form">
        <table class="layui-table mt10" lay-even="" lay-skin="row">
            <colgroup>
                <col width="50">
            </colgroup>
            <thead>
            <tr>
                <th><input type="checkbox" lay-skin="primary" lay-filter="allChoose"></th>
                <th>id</th>
                <th>昵称</th>
                <th>头像</th>
                <th>手机号</th>
                <th>地址</th>
                <th>学历</th>
                <th>性别</th>
                <th>年龄</th>
                <th>身份</th>
                <th>注册时间</th>
                <th>上次登录时间</th>
                <th>用户状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <?php 
            $level = config('hs_system.member_level');
             if(is_array($userlist) || $userlist instanceof \think\Collection || $userlist instanceof \think\Paginator): $i = 0; $__LIST__ = $userlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
            <tr>
                <td><input type="checkbox" name="ids[]" class="layui-checkbox checkbox-ids" value="<?php echo $vo['id']; ?>" lay-skin="primary"></td>
                <td class="font12"><?php echo $vo['nickname']; ?></td>
                <td class="font12"><img src="<?php if($vo['headicon']): ?><?php echo $vo['headicon']; else: ?>/static/admin/image/avatar.png<?php endif; ?>" width="60" height="60" class="fl"></td>
                <td class="font12"><?php echo $vo['phonenum']; ?></td>
                <td class="font12"><?php echo $vo['address']; ?></td>
                <td class="font12"><?php echo $vo['gender']; ?></td>
                <td class="font12"><?php echo $vo['age']; ?></td>
                <td class="font12"><?php if($vo['role'] == 1): ?>婚恋<?php else: ?>周易<?php endif; ?></td>
                <td class="font12"><?php echo date("Y-m-d H:i:s",$vo['create_time']); ?></td>
                <td class="font12"><?php echo date("Y-m-d H:i:s",$vo['opration_time']); ?></td>
                <td class="font12"><input type="checkbox"  name="status" value="<?php echo $vo['status']; ?>" lay-skin="switch" lay-filter="switchStatus" lay-text="否|是" <?php if($vo['status'] == 1): ?>checked<?php endif; ?> data-href="<?php echo url('changestatus',array('id'=>$vo['id'])); ?>"></td>

                <td style="width: 150px;">
                    <div class="layui-btn-group">
                        <div class="layui-btn-group">
                            <a href="<?php echo url('userverify?id='.$vo['id']); ?>" class="layui-btn layui-btn-primary layui-btn-sm" title="审核"><i class="layui-icon">&#xe642;</i></a>
                            <!--                            <a data-href="<?php echo url('delete?table=home_bank&ids='.$vo['id']); ?>" class="layui-btn layui-btn-primary layui-btn-sm j-tr-del"><i class="layui-icon">&#xe640;</i></a>-->
                        </div>
                    </div>
                </td>
            </tr>
            <?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
        </table>
        <?php echo $userlist->render(); ?>
    </div>
</form>
<script src="/static/admin/js/layui/layui.js?v=<?php echo config('hisiphp.version'); ?>"></script>
<script>
    var ADMIN_PATH = "<?php echo $_SERVER['SCRIPT_NAME']; ?>";
    layui.config({
        base: '/static/admin/js/',
        version: '<?php echo config("hisiphp.version"); ?>'
    }).use('global');
</script>
<script src="/static/js/jquery.2.1.4.min.js"></script>
<script type="text/javascript">
    jeDate("#test11A",{
        format: "YYYY-MM-DD hh:mm:ss",
        multiPane:false,
        range:"~"
    });

    $(".pagination a").on("click",function (e) {
        var url = $(this).attr("href");
        var formdata = $(".layui-form").serialize();
        if(url.indexOf('?')<=-1){
            url = url+"?"+formdata;
        }else{
            url = url+"&"+formdata;
        }
        e.preventDefault();
        $(location).attr('href', url);
    });
    $(".exportdata").on("click",function (e) {
        var url = $(this).attr("data-url");
        var formdata = $(".layui-form").serialize();
        if(url.indexOf('?')<=-1){
            url = url+"?"+formdata;
        }else{
            url = url+"&"+formdata;
        }
        e.preventDefault();
        location.href=url;
    });
</script>
    <?php break; default: ?>
    
        <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title">
                <li class="layui-this">
                    <a href="javascript:;" id="curTitle"><?php echo $_admin_menu_current['title']; ?></a>
                </li>
                <div class="tool-btns">
                    <a href="javascript:location.reload();" title="刷新当前页面" class="aicon ai-shuaxin2 font18"></a>
                    <a href="javascript:;" class="aicon ai-quanping1 font18" id="fullscreen-btn" title="打开/关闭全屏"></a>
                </div>
            </ul>
            <div class="layui-tab-content page-tab-content">
                <div class="layui-tab-item layui-show">
                    <link type="text/css" rel="stylesheet" href="/static/home/datatime/test/jeDate-test.css">
<link type="text/css" rel="stylesheet" href="/static/home/datatime/skin/jedate.css">
<script type="text/javascript" src="/static/home/datatime/src/jedate.js"></script>
<style type="text/css">
    .layui-form-item{
        display: inline-block;
    }
    .submitjiao{
        cursor: pointer;
        background-color: #0C0C0C;
    }
</style>
<div class="page-toolbar">
    <div class="page-filter fr">
        <form class="layui-form layui-form-pane" action="<?php echo url(); ?>" method="get">
            <div class="layui-form-item">
                <label class="layui-form-label">注册时间</label>
                <div class="layui-input-inline" style="min-width:230px;">
                    <div class="jeinpbox"><input type="text" name="createtime" value="<?php echo input('get.createtime'); ?>" readonly placeholder="年月日~年月日"  id="test11A" lay-verify="required" autocomplete="off" class="layui-input"></div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">审核</label>
                <div class="layui-input-inline">
                    <select name="isverify" class="field-bank_id" type="select">
                        <option value="3" selected <?php if(input('get.status') == 3): ?>selected<?php endif; ?>>全部</option>
                        <option value="1" <?php if(input('get.isverify') == 1): ?>selected<?php endif; ?>>未审核</option>
                        <option value="2" <?php if(input('get.isverify') == 2): ?>selected<?php endif; ?>>已审核</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">

                <label class="layui-form-label">状态</label>
                <div class="layui-input-inline">
                    <select name="status" class="field-bank_id" type="select">
                        <option value="3" <?php if(input('get.status') == 3): ?>selected<?php endif; ?>>全部</option>

                        <option value="1" <?php if(input('get.status') == 1): ?>selected<?php endif; ?>>正常</option>
                        <option value="2" <?php if(input('get.status') == 2): ?>selected<?php endif; ?>>禁用</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">关键字</label>
                <div class="layui-input-inline">
                    <input type="text" name="keyword" value="<?php echo input('get.keyword'); ?>" lay-verify="required" placeholder="老师姓名或手机号" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <input type="hidden" value="2" name="character">
                    <input type="submit" value="搜索" class="layui-form-label submitjiao">
                </div>
            </div>

        </form>
    </div>
    <div class="layui-btn-group fl">
        <a href="javascript(0);" data-url="<?php echo url('exportdata'); ?>" class="layui-btn layui-btn-primary layui-icon layui-icon-add-circle-fine exportdata">&nbsp;导出数据</a>
    </div>
</div>
<form id="pageListForm">
    <div class="layui-form">
        <table class="layui-table mt10" lay-even="" lay-skin="row">
            <colgroup>
                <col width="50">
            </colgroup>
            <thead>
            <tr>
                <th><input type="checkbox" lay-skin="primary" lay-filter="allChoose"></th>
                <th>id</th>
                <th>昵称</th>
                <th>头像</th>
                <th>手机号</th>
                <th>地址</th>
                <th>学历</th>
                <th>性别</th>
                <th>年龄</th>
                <th>身份</th>
                <th>注册时间</th>
                <th>上次登录时间</th>
                <th>用户状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <?php 
            $level = config('hs_system.member_level');
             if(is_array($userlist) || $userlist instanceof \think\Collection || $userlist instanceof \think\Paginator): $i = 0; $__LIST__ = $userlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
            <tr>
                <td><input type="checkbox" name="ids[]" class="layui-checkbox checkbox-ids" value="<?php echo $vo['id']; ?>" lay-skin="primary"></td>
                <td class="font12"><?php echo $vo['nickname']; ?></td>
                <td class="font12"><img src="<?php if($vo['headicon']): ?><?php echo $vo['headicon']; else: ?>/static/admin/image/avatar.png<?php endif; ?>" width="60" height="60" class="fl"></td>
                <td class="font12"><?php echo $vo['phonenum']; ?></td>
                <td class="font12"><?php echo $vo['address']; ?></td>
                <td class="font12"><?php echo $vo['gender']; ?></td>
                <td class="font12"><?php echo $vo['age']; ?></td>
                <td class="font12"><?php if($vo['role'] == 1): ?>婚恋<?php else: ?>周易<?php endif; ?></td>
                <td class="font12"><?php echo date("Y-m-d H:i:s",$vo['create_time']); ?></td>
                <td class="font12"><?php echo date("Y-m-d H:i:s",$vo['opration_time']); ?></td>
                <td class="font12"><input type="checkbox"  name="status" value="<?php echo $vo['status']; ?>" lay-skin="switch" lay-filter="switchStatus" lay-text="否|是" <?php if($vo['status'] == 1): ?>checked<?php endif; ?> data-href="<?php echo url('changestatus',array('id'=>$vo['id'])); ?>"></td>

                <td style="width: 150px;">
                    <div class="layui-btn-group">
                        <div class="layui-btn-group">
                            <a href="<?php echo url('userverify?id='.$vo['id']); ?>" class="layui-btn layui-btn-primary layui-btn-sm" title="审核"><i class="layui-icon">&#xe642;</i></a>
                            <!--                            <a data-href="<?php echo url('delete?table=home_bank&ids='.$vo['id']); ?>" class="layui-btn layui-btn-primary layui-btn-sm j-tr-del"><i class="layui-icon">&#xe640;</i></a>-->
                        </div>
                    </div>
                </td>
            </tr>
            <?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
        </table>
        <?php echo $userlist->render(); ?>
    </div>
</form>
<script src="/static/admin/js/layui/layui.js?v=<?php echo config('hisiphp.version'); ?>"></script>
<script>
    var ADMIN_PATH = "<?php echo $_SERVER['SCRIPT_NAME']; ?>";
    layui.config({
        base: '/static/admin/js/',
        version: '<?php echo config("hisiphp.version"); ?>'
    }).use('global');
</script>
<script src="/static/js/jquery.2.1.4.min.js"></script>
<script type="text/javascript">
    jeDate("#test11A",{
        format: "YYYY-MM-DD hh:mm:ss",
        multiPane:false,
        range:"~"
    });

    $(".pagination a").on("click",function (e) {
        var url = $(this).attr("href");
        var formdata = $(".layui-form").serialize();
        if(url.indexOf('?')<=-1){
            url = url+"?"+formdata;
        }else{
            url = url+"&"+formdata;
        }
        e.preventDefault();
        $(location).attr('href', url);
    });
    $(".exportdata").on("click",function (e) {
        var url = $(this).attr("data-url");
        var formdata = $(".layui-form").serialize();
        if(url.indexOf('?')<=-1){
            url = url+"?"+formdata;
        }else{
            url = url+"&"+formdata;
        }
        e.preventDefault();
        location.href=url;
    });
</script>
                </div>
            </div>
        </div>
<?php endswitch; if(input('param.hisi_iframe') || cookie('hisi_iframe')): ?>
</body>
</html>
<?php else: ?>
        </div>
    </div>
    <div class="layui-footer footer">
        <span class="fl">Powered by <a href="<?php echo config('hisiphp.url'); ?>" target="_blank"><?php echo config('hisiphp.name'); ?></a> v<?php echo config('hisiphp.version'); ?></span>
        <span class="fr"> © 2017-2018 <a href="<?php echo config('hisiphp.url'); ?>" target="_blank"><?php echo config('hisiphp.copyright'); ?></a> All Rights Reserved.</span>
    </div>
</div>
</body>
</html>
<?php endif; ?>